<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/6/21
 * Time: 10:26
 */

namespace app\admin\validate;


use think\Validate;

class Ad extends Validate
{
    protected $rule = [
        'tp_name' => 'require|unique:adtype'


    ];

    protected $message = [
        'tp_name.require' => '分类不能为空',
        'tp_name.unique' => '分类已存在'
    ];

    protected $scene = [
        'add' => ['tp_name'],
    ];
}